/**
 * Verschiedene "Quadrate" mit X'en zur Übung von Schleifen
 * 
 * @author henry@freye.de
 *
 */
public class Kreuze {

	/**
	 * @param args wird nicht ausgwertet
	 * Sinnvolle Eingaben: Zaheln 2..10 
	 * 
	 */
	public static void main(String[] args) {
		int ende = MyIO.readInt("Input: ");
		System.out.println("----------------  Variante 1   ---------------------");
		System.out.println("----------------  Input: "+ende+" ------------------");
		for (int zeile=1; zeile<=ende; zeile++){
			System.out.println("X"); //System.out.println(zeile);
		}

		System.out.println("----------------  Variante 2   ---------------------");
		System.out.println("---------------- Input: "+ende+" --------------------");
		for (int spalte=1; spalte<=ende; spalte++){
			System.out.print("X"); //System.out.print(spalte);
		}
		System.out.println("");
		
		System.out.println("----------------  Variante 3   ---------------------");
		System.out.println("---------------- Input: "+ende+" --------------------");
		for (int zeile=1; zeile<=ende; zeile++){
			for (int spalte=1; spalte<=ende; spalte++){
				System.out.print("X"); //System.out.print(spalte);
			}
			System.out.println("");
			//eine Zeile zu Ende 
		}
		
		System.out.println("----------------  Variante 4   ---------------------");
		System.out.println("---------------- Input: "+ende+" --------------------");
		for (int zeile=1; zeile<=ende; zeile++){
			for (int spalte=1; spalte<=ende; spalte++){
				System.out.print(spalte);
			}
			System.out.println("");
			//eine Zeile zu Ende 
		}
		
		
		System.out.println("----------------  Variante 5   ---------------------");
		System.out.println("---------------- Input: "+ende+" --------------------");
		for (int zeile=1; zeile<=ende; zeile++){
			for (int spalte=1; spalte<=ende; spalte++){
				System.out.print(zeile);
			}
			System.out.println("");
			//eine Zeile zu Ende 
		}

		System.out.println("----------------  Variante 6   ---------------------");
		System.out.println("---------------- Input: "+ende+" --------------------");
		for (int zeile=1; zeile<=ende; zeile++){
			for (int spalte=1; spalte<=zeile; spalte++){
				System.out.print(spalte);
			}
			System.out.println("");
			//eine Zeile zu Ende 
		}
		
		System.out.println("----------------  Variante 7   ---------------------");
		System.out.println("---------------- Input: "+ende+" --------------------");
		for (int zeile=1; zeile<=ende; zeile++){
			for (int spalte=1; spalte <= ende-zeile+1; spalte++){
				System.out.print(spalte);
			}
			System.out.println("");
			//eine Zeile zu Ende 
		}

		System.out.println("----------------  Variante 8   ---------------------");
		System.out.println("---------------- Input: "+ende+" --------------------");
		for (int zeile=1; zeile<=ende; zeile++){
			for (int spalte=1; spalte<=zeile; spalte++){
				int ausgabe = ende-spalte+1;
				System.out.print(ausgabe);
			}
			System.out.println("");
			//eine Zeile zu Ende 
		}

		
		System.out.println("----------------  Variante 9   ---------------------");
		System.out.println("---------------- Input: "+ende+" --------------------");
		for (int zeile=1; zeile<=ende; zeile++){
			for (int spalte=1; spalte <= ende-zeile+1; spalte++){
				int ausgabe = ende-spalte+1;
				System.out.print(ausgabe);
			}
			System.out.println("");
			//eine Zeile zu Ende 
		}

		System.out.println("----------------  Variante 10   ---------------------");
		System.out.println("---------------- Input: "+ende+" --------------------");
		for (int zeile=1; zeile<=ende; zeile++){
			for (int spalte=1; spalte<zeile; spalte++){
				System.out.print(".");
			}
			for (int spalte=zeile; spalte<=ende; spalte++){
				System.out.print(spalte);
			}
			System.out.println("");
			//eine Zeile zu Ende 
		}

		System.out.println("----------------  Variante 11   ---------------------");
		System.out.println("---------------- Input: "+ende+" --------------------");
		for (int zeile=1; zeile<=ende; zeile++){
			for (int spalte=1; spalte <= ende-zeile; spalte++){
				System.out.print(".");
			}
			for (int spalte = ende-zeile+1 ; spalte<=ende; spalte++){
				System.out.print(spalte);
			}
			System.out.println("");
			//eine Zeile zu Ende 
		}

		System.out.println("----------------  Variante 12   ---------------------");
		System.out.println("---------------- Input: "+ende+" --------------------");
		for (int zeile=1; zeile<=ende; zeile++){
			for (int spalte=1; spalte <= ende-zeile; spalte++){
				System.out.print(".");
			}
			for (int spalte = ende-zeile+1 ; spalte<=ende; spalte++){
				int ausgabe = ende-spalte+1;
				System.out.print(ausgabe);
			}
			System.out.println("");
			//eine Zeile zu Ende 
		}

		System.out.println("----------------  Variante 13   ---------------------");
		System.out.println("---------------- Input: "+ende+" --------------------");
		//Zeile 1
		for (int spalte = 1 ; spalte<=ende; spalte++){
				System.out.print("#");
		}
		System.out.println("");		
		//mittlere Zeilen
		for (int zeile=2; zeile <= ende-1; zeile++){
			for (int spalte=1; spalte <= ende; spalte++){
				System.out.print(".");
			}
			System.out.println("");
		}
		//letzte Zeile
		for (int spalte = 1 ; spalte<=ende; spalte++){
				System.out.print("#");
		}
		System.out.println(""); 
		
		System.out.println("----------------  Variante 14   ---------------------");
		System.out.println("---------------- Input: "+ende+" --------------------");
		for (int zeile=2; zeile <= ende-1; zeile++){
			//erste Spalte
			System.out.print("#");
			//mittlere Spalten
			for (int spalte=2; spalte <= ende-1; spalte++){
				System.out.print(".");
			}
			//letzte Spalte
			System.out.println("#");
		}
		
		System.out.println("----------------  Variante 15   ---------------------");
		System.out.println("---------------- Input: "+ende+" --------------------");
		//erste Zeile
		for (int spalte=1; spalte <= ende; spalte++){
			System.out.print("#");
		}
		System.out.println("");
		//mittlere Zeilen
		for (int zeile=2; zeile <= ende-1; zeile++){
			//erste Spalte
			System.out.print("#");
			//mittlere Spalten
			for (int spalte=2; spalte <= ende-1; spalte++){
				System.out.print(".");
			}
			//letzte Spalte
			System.out.println("#");
		}
		//letzte Zeile
		for (int spalte=1; spalte <= ende; spalte++){
			System.out.print("#");
		}
		System.out.println("");
	
		
	}//end of main
}//end of class
